The marriage of the mother and reputed father of a bastard child renders it legitimate if the child is recognized by the father as his child.