Fixes GH-348: configtool invalid profile name

**ok** needed to be checked before input text validity.