Add maxlength to input