Use proper hooks for form handling