add port format check.