All marriages heretofore solemnized by any municipal magistrate or magistrate of the municipal court who was not at the time of such solemnization authorized to solemnize marriages shall, if otherwise valid, be as valid as if same had been solemnized by a person authorized to solemnize marriages.
N.J.S. § 37:1-13.1