Revert "login/logout update fixed #8"

This reverts commit f5786747d569f49b559b15f2572385f86c5493f4.