Added fields checking in edit polygon dialog.