make sure port is a number