Add validation abilities to the dialog. Also, fixes a validation redraw bug.