added error message, if oauth2 is missing