The server will now reject any save attempts with invalid case_types.
Additionally, validity is checked by the js directly, and it will add an
error class to the control group, better displaying the problem.  The
input field still has the pattern attribute so the box-shadow
highlighting occurs correctly.