ui_newt: implement validation of user input in static ip