Disable form inputs while sending, reset form after sending, and improve initialization.