check input value, not class field