Section 48. Whoever, not being duly authorized by the laws of the commonwealth, undertakes to join persons in marriage therein shall be punished by a fine of not more than five hundred dollars or by imprisonment for not more than one year, or both.