The legitimate leader of Ukraine was Yanukovych, once ousted by the west with their coup the so called authorities became a lot less legitimate. He should have still been the President until next year as his term in office did not end until then. They did not like the fact he would not with the EU so they punished him.