When you copy mongoose models, you get stuck with undefined validators. See if this can be imported/re-implemented to be used in the project