validate location not defined