added some logic for getting token from google