created logout and fixed last tranaction ID