Added error for if input not a word.