use BasePath validator only if basePath is used