attempted error handling for oauth