Extends mongoose built-in schema validation.