Validates rules