Children born or adopted of a marriage declared invalid are legitimate.
Children whose parents marry after their birth are legitimate. Unless the court finds, after a consideration of all relevant circumstances, including the effect of a retroactive judgment on third parties, that the interests of justice would be served by making the judgment not retroactive, it shall declare the marriage invalid as of the date of the marriage. The provisions of this Act relating to property rights of the spouses, maintenance, support and custody of children on dissolution of marriage are applicable to non-retroactive judgments of invalidity of marriage only. Any person, having gone through a marriage ceremony, who has cohabited with another to whom he is not legally married in the good faith belief that he was married to that person is a putative spouse until knowledge of the fact that he is not legally married terminates his status and prevents acquisition of further rights. A putative spouse acquires the rights conferred upon a legal spouse, including the right to maintenance following termination of his status, whether or not the marriage is prohibited, under Section 212, or declared invalid, under Section 301.