correctly creating election hash on secure elections too