add log out and transaction record