Add logging for authentication handlers.