check for logged in status