Different validation strategy when there is an error - TanStack