add error handling for sign up