Fixed bug in user registration with officer registration. Fixed bug in voting_control where generate method was missing