Differentiate the type of the field state value and the validation result? - TanStack