An act of a director or officer is valid despite any irregularity in his or her election or appointment, or any defect in his or her qualification.