legal concept stating that if a child born out of wedlock's parents marry the child should be seen as legitimate