to prevent the pasta from steaming (which will make it soggy) and to assure a browned top, bake the pasta uncovered. it's in the oven for such a short period that there's little risk of overcooking the top. traditionally you let a baked pasta rest a few minutes after removing it from the oven to firm it up.