Validate path format