Use an indexed field for uniqueness validation

This validation does a query for a mapping with the given path. Using the path_hash should be no different, but should be slightly quicker as it will use the index.