yup.string() .required("Please enter the required field") .matches(/^[aA-zZ\s]+$/, "Only alphabets are allowed for this field ")