Add debug information for user.login

/to @ritch 

User.login() doesn't report the underlying error to the callback (by design). The PR adds debug information to help troubleshoot issues.