Participation in any such plan shall be optional with all employees eligible to the benefits thereof as provided by the rules adopted by the governing body pursuant thereto. Election to participate therein shall be in writing signed by the employee and filed with the governing body.