Any person who undertakes to join persons in marriage, knowing that he is not authorized to do so, shall be fined not more than five hundred dollars or imprisoned not more than one year or both.