text: const {check} = require('express-validator');
  
  
  exports.userSignupValidator = [
      check('name').not().isEmpty().withMessage('Name is required'),
      check('email').isEmail().withMessage('Must be a valid email address'),
      check('password').isLength({min:6}).withMessage('Must be a min 6 charactes password')
  ];
  
  exports.userSigninValidator = [
  
      check('email').isEmail().withMessage('Must be a valid email address'),
      check('password').isLength({min:6}).withMessage('Must be a min 6 charactes password')
  ];
  
  