Detect required field - TanStack