US Secretary of State John Kerry warned Friday that the legitimacy of the Afghan election and the country's future were threatened by a bitter dispute over presidential polls.