fixed voting so that it works and only allows you to vote once