return user name and failed reason in checkAuth.