check for logged in instead