two logins and logouts merged