create separate function for google authentication