This is the problem when using validators that is dependent on more than one input element.
One way to achieve this would be to add an extra parameter to the useFormValidator which will always accept the name of the component that needs to be associated with the error.