modified to handle allowed users for private elections