I have the following for a schema validator for MongoDB:{
UserSchema.path(\'email\').validate(async function (email: string) { const count = await User.count({