1const validationSchema = yup.object().shape({
2 newPassword: yup.string()
3 .required('New Password is required'),
4 confirmPassword: yup.string()
5 .required('Confirm Password is required')
6 .oneOf([yup.ref('password'), null], 'Passwords does not match'),
7 });