[PR] Provide better validation for name, path, and the existence of path.