Update account when transaction happens.