fix an issue where the deploy dialog submit was not enabled

@ussuri

Fix an issue where the `Deploy` button in the deploy dialog was not enabled. The dialog has some fields that we validate, that are only used in some paths through the dialog.

I think we should move some or all of the validation logic out of the declarative part of the dialogs (html) and into the  procedural part (dart).