Fix unhandled exception on login of non existing user