Better error handling if resetPassword fails. Also, handle setLoginToken(null) better.
Fix issue where login callbacks could be called multiple times on reconnect.