Some more logging added to authentication.