Trump challenges legitimacy of election