fix port range validation.
add logging for new listen port number.