Validation not triggering correctly for conditionally rendered fields - TanStack