add error handling and call callback url when create election has finished, with error or with success