Section 7. A magistrate or minister shall not solemnize a marriage if a party to the intended marriage is under the age of 18.