fixed bug with incorrect redirect on oauth login