textbox class work

added OnValidate to set_input_restriction