Fixed chek for valid port