added maxlength attribute to form inputs