modified for google login