Log enhancement for authentication issues