fixing port name validation