I think the child is legit regardless of marital status. I don't think people need a legal document saying they're married to be married in the eyes of God.

Besides, I think concept of an illegitimate child is outdated and discriminatory. It's punishing and shunning the child for something out of their control.