added some debugging information for monitoring the login process