Add maxlength to custom field