validate query params, and update node listening port