confirm password field joi code example
Example: joi validation compare two password
password: Joi.string().required(),
confirmPassword:Joi.string().required().valid(Joi.ref('password')),
password: Joi.string().required(),
confirmPassword:Joi.string().required().valid(Joi.ref('password')),