EZP-21703: improved validation by adding pathString comparison