Only accpet (write to the input) valid value