Set classes on validation errors