added some validation to php updatelocation