Add functionality to flag current value if invalid

If the current value is not in the set of acceptable values, the code
will display it as invalid, with the text in red.
This commit also slight enlarges the width of the pull-down field.
Modify comment