Fix login/logout problem of old activities hanging around on back stack
from the previous users' session. More info in issue #142