added error checking to sign up