added simple authentication error handling