Moved error case determination for dialog_learn_period to learn_period::name_valid