adding maxlength support of inputs