Fixing ID check for polls