register auth_errors