validate range of --rpc-port option (fix #605)

Validate range of --rpc-port option in \[1, 65535\] (fix #605)