Make sure sidebar says log in only if user is logged out

Change-Id: I1e5d944086edeee98b407f7a8178e9866ed5bc3c