vote function completed
fixed anonymous user problems