fixed the path validator