Mushy pasta likely happened because it was overcooked when boiling. You want to drain the pasta when it still has a bit of firmness to it since it will continue to cook and soften in the oven.