No, they aren’t illegitimate at all. Keep the children out of it.
How could your church possibly leave the kids out of it when Mommy and Daddy weren’t really married in the first place? What does this say to a child?
Pray tell how this is actually EXPLAINED to the children of a marriage that the church pretends never existed?