refactored the signupviewcontroller