implement logged in status check