Make errordlg modal and improve input validation

Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>
Allow empty min/max text edits

Signed-off-by: Maxim Osipov <maxim.osipov@gmail.com>