Fixed bugs in the Auth loadKey method. Added debug messages for testing
the login process.