Where in that definition does it say if you vote, then you are a democracy? Is the supreme power vested within the people of Iran? No. That means Iran is not a democracy.
Please read it carefully:
Democracy - 1. government by the people; a form of government in which the supreme power is vested in the people and exercised directly by them or by their elected agents under a free electoral system.