Also add validation of addresses taking network version into account.