changed the save_vote method in Vote contr