Make a best use of dialogName value.
Implement the verification and submission of the form.