Changed port validation logic to support named ports such as http or pop3 instead of just numerical ports