fixing error callback for OAuth