restore admin check to is_valid