Modern legal framework needed for UK elections