Added simple inline validation for the text generator;