Add validation abilities to the dialog. Also, fixes a validation redraw bug.
Merge remote-tracking branch 'refs/remotes/origin/misc-VariousFormObjs' into dev-v3