path validate