Except as provided in section 517.03, subdivision 1, paragraph (b), all marriages contracted within this state prior to March 1, 1979 or outside this state that were valid at the time of the contract or subsequently validated by the laws of the place in which they were contracted or by the domicile of the parties are valid in this state.