inserting horizontal words with validations