[PATCHv2] validate input in cli and fix ask_for_missing_settings function