adding some meaningful error handling for auth related errors