Any marriages performed by a mayor of a municipality prior to March 14, 1994 are validated unless they have been invalidated by a court of competent jurisdiction, provided that all other requirements of law have been met and the marriages would have been valid if performed by an official authorized by law to solemnize the rites of matrimony.