Implemented error checking for sign up