Decide on a suitable form handling library. I would suggest https://tanstack.com/form/v1/docs/framework/svelte. Apply form validation and error handling.