valdiate path