Added a value for authentication errors
Implemented (as much as possible) TryUserAuthentication