Iran’s former hardline President Mahmoud Ahmadinejad took the shock move on Wednesday of registering for next month’s presidential election, going against the advice of the supreme leader.