added improved error checking functionality to sign up process