Added security check if vote is 1 or 0, else HTTP exception