added reason to error when trying to register user with duplicate email address