Before entering upon the discharge of his duties, any person elected to the office of mayor or councilman shall be sworn to faithfully and impartially discharge the duties of his office to the best of his ability.