Corrected all error handling for adding words.