creating server-side code for signup and server-side controller for user signup