Selectmen, before entering upon the duties of their office, shall be sworn, and the authority administering the oath shall file a certificate thereof with the town clerk, who shall record the same.