If, during the lifetime of a husband or wife with whom a marriage is still in force, a person remarries and the parties to the subsequent marriage live together as husband and wife, and one of the parties to the subsequent marriage believes in good faith that the former husband or wife is dead or that the former marriage has been annulled or dissolved by a divorce or is without knowledge of the former marriage, then after the death or divorce of the other party to the former marriage, if they continue to live together as husband and wife in good faith on the part of one of them, they are legally married from the time of removal of the impediment, and the issue of the subsequent marriage are the legitimate issue of both parents, whether born before or after the removal of the impediment.
AS 25.05.051