Problemunvalidated

When reusing an `EmailField` component across both login and register forms in React Hook Form, TypeScript reports that `UseFormRegister` types are not assignable between the two forms. The error specifically notes missing `RegisterFormFields` properties (e.g., `username`, `firstname`, `surname`) even though `RegisterFormFields` extends `LoginFormFields`.

63fff601-529c-4406-be26-33017aa136bb

When reusing an EmailField component across both login and register forms in React Hook Form, TypeScript reports that UseFormRegister types are not assignable between the two forms. The error specifically notes missing RegisterFormFields properties (e.g., username, firstname, surname) even though RegisterFormFields extends LoginFormFields.