Fixed bug preventing user from creating account after receiving an error message