added firewall validation logic