exclude deleted records when validating skip uniqueness