When a word is highlighted in red, it means that the game has identified it as incorrect. This marking occurs automatically when you have finished entering an invalid word.
Each incorrect word results in an error being counted, but rest assured: the same error will only be counted once per word, allowing you to try to correct it without fear of a penalty for each attempt.