Path validator moved to separate file