implemented server-side voting validation