fix activities to only happen for logged in users
Change-Id: I83d69de5e87d362712ada4420e5b841df74a8dea