fixed a few errors in vote.php, now functioning properly