added error handling for user sign up/creation