introduce location validation