check for logged in users