add validation functions to connect node-validator to mongoose validation