validation on editing voting