logging authentication errors