No ordinance, resolution, or order, including those granting a franchise or valuable privilege, shall have any validity or effect unless passed by the affirmative vote of at least a majority of the members of the city or town council. Every ordinance or resolution adopted shall be signed by the mayor or two members, filed with the clerk within two days and by him or her recorded.