35. The Venice Commission and ODIHR consider that the aims pursued by the draft law should be considered as legitimate. The draft law has been issued in a very unique historical situation. The war caused by the Russian Federation’s invasion of Ukraine is threatening the life of the Ukrainian nation and its existence as a democratic polity. The European Court of Human Rights has accepted limitations to the right to be elected in situations which were much less dangerous for the survival of the democratic state; for example it has recognised that the setting up of self-protection mechanism to preserve the democratic order, for instance by excluding from the legislature any senior officials who had committed gross violations of the Constitution or breached their oath provided for in the Constitution constituted a legitimate aim.51 The Court also recognised the legitimacy of the aim of ensuring loyalty to the State or the integrity of public office holders and public trust in public institutions, in the case of the judiciary.