adding logged in checks