Make validation check for legal serive port numbers.