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

Fix login/logout issues