Updated vote() function to tally votes or return error message on form submission.