added geolocation check and refresh identity