prevent logout from showing in footer unless user is logged in