isPathValid + better UI