Added Extra Error Checking

Checks DHCP and HTTP parameters better.