Add some more logging to authentication