fixing problems preventing create election form to work fine