A municipality cannot terminate an employment contract on the basis that the appointment was unlawful or void without first obtaining a court order setting aside the appointment. Section 54A(3) of the Municipal Systems Act, which renders certain appointments null and void, does not confer power on a municipal council to unilaterally treat an appointment as void and disregard the contract and its legal consequences. Until an administrative act is set aside by a court in judicial review proceedings, it exists in fact and has legal consequences that cannot be overlooked. The rule of law obliges public functionaries to use the correct legal process and does not permit self-help. Courts alone, not public officials, are the arbiters of legality. Where an employee's dismissal is declared invalid (as opposed to unfair), the employee remains employed in law and does not require an order of reinstatement, but rather an order directing the parties to give effect to the continuing employment relationship.