added validation logic to SNMP
validation bug fix