Validating user input for signup