Added the word list file and did some input validation