A little bit of Refactoring and added tests for User Signup error messages