I'll simplify it, only accepted strings are '1' and '2', but the value is kind of supposed to be checked in validate().