added validation for the geolocation