added a client side validation to check votes for the voter