All town officers elected as provided in this chapter shall take an oath of office as provided in N.H. Rev. Stat. Chapter 42 before qualifying for office.