Checking for logged in user.