The act of a director or officer is valid despite an irregularity in his or her election or a defect in his or her appointment or qualification.