fixed bug vote.rb wrong type of validation