Fix bug 1047018: Track successful log in/out

Yeah, good point. I'll do that.