observing min/maxlength attributes