implement validityState.badInput (improvement for Issue #271)