So what? We don't elect our President by popular vote in our country. The election is done, as per the Consititutiom, using the Electoral College.
It was legitimate from day 1, Constitutionally speaking, since the Constitution is the Law of the Land...