Added validation to prevent duplicate votes