Clean up state validation logic per user input.

Added CNTL/writeError to output a list of cases that could be erroneous.