added logging to see where the authentication process is falling on its face