Extend is.valid library to validate objects that are saved to Mongo DB