fixed port input validation to prevent code injection
fixed another code injection vulnerability
Merge pull request #4 from opentechinstitute/security-fix

fixed port input validation to prevent code injection

Tested by areynold