change to is_auth_user function to accept a boolean determining whether you want to check login or not login