The vegetable mixture was likely too moist. Just like when making our vegan Wellington, it is important to cook the vegetable mixture until the excess moisture from the vegetables has evaporated out, and the vegetables are pretty dry. Doing this will prevent the lentil meatloaf from being mushy.