When the form is been submited it doesn\'t execute the "handleSubmit" function.
const {register, handleSubmit, setValue, errors ,control} = useForm(