add error logging for oauth login