add basic validation to paths