adapt login for Gauth