added validation on polling