Added case for not logged in user.