v2.0: Refactors and enhances BaseForm component
- Improves type safety by adding typehints and return types. - Disallows form submission via disabled submit buttons. - Uses untrusted values instead of unsafe values. - Removes the deprecated getForm() method.