The regulations shall provide for a reasonable opportunity of being heard to the director or an employee against whom a complaint is made for violating the provisions of section 16 or section 19, as the case may be, and a right to prefer an appeal against any order imposing the penalty.