small fix & added maxlength to names