Logging for authentication failure with API