checked election status before updating the candidates