Removed voting object from validate_vote function