Fix `unique: true` checking for validate() and validateOne()