validate and save to account_gateways