Added function to count the correct answers.
grouped inputs and correct words and changed validate function to match