Please use is_port() instead of is_numeric() to validate port number