rename showInvalid -> isInvalid