Improve form validation and submitting messages.