Section 49. Whoever, being duly authorized to solemnize marriages in the commonwealth, joins in marriage persons who have not complied with the laws relative to procuring certificates of notice of intention of marriage shall be punished by a fine of not more than five hundred dollars.