const {register, handleSubmit, formState: {errors, isValid}} = useForm();
<button disabled={!isValid}></button>