update port number validation