Checking whether the current user is logged in or not.