Cobb, P. J.
(After stating the facts.)
1. An amendment was offered by the plaintiffs at the hearing-of the demurrers, as appears by a recital in the order of the judge-disallowing the same. It does not appear, however, to have been, filed. Under such circumstances it did not become a part of the-record in the case, and therefore can not come to this court in the> transcript of the record under the certificate of the clerk. It should have been embodied in the bill of exceptions or attached thereto as an exhibit, properly authenticated. Sibley v. Mutual Ass’n, 87 Ga. 738 (13 S. E. 838); Sayer v. Brown, 119 Ga. 539 (2) (46 S. E. 649). In McCall v. Herring, 116 Ga. 235 (42 S. E. 468), the amendment to the plea had been duly and regularly-filed, and had therefore become a part of the record, and was-properly brought to this court in the transcript of the record under the certificate of the clerk, notwithstanding that after the same had been filed it was stricken upon the ground that it constituted no defense.
' 2. As we can not consider the amendment to the petition, for the reasons above referred to, the only question to be determined is whether the original petition set forth a cause of action. The suit was against the principal and the surety upon the bond. • The-purpose for which the bond was entered into was to indemnify Mrs. McG-arry against loss' growing out of the failure on the part of the contractor, who was to erect for her the dwelling, to comply with the terms and stipulations of his contract. While it was. distinctly provided that the surety should not be liable under the bond to any one except Mrs. McGarry, the obligee, it was agreed. *299that Airs. AIcGarry, in ascertaining her damages, might include the claims of mechanics and materialmen paid by her, provided such claims were valid liens against the property under the law of the State. It was therefore necessary, in order to charge the surety on account of the payment by her of a claim of a material-man, that it must appear that she had paid the claim, and that the claim of the materialman was, under the law of this State, a valid lien upon the property. It appears from the allegations of the petition that she has not paid any of the claim asserted by Bandall Brothers. It is not alleged that the claim of Bandall Brothers is a valid lien under the laws of this State. A suit in which she denies that their claim is a .valid lien under the laws of Georgia is now pending. It does not appear, from the petition, that she has yet been damaged by the claim of lien. She has paid nothing. But, it is said, the bond also provides that the surety will not be liable unless suit is brought thereon “within-six months after the completion of the work” provided for in the contract, and that the work has been completed, and that she certainly must have the right to bring the suit within the six months, notwithstanding no payment has been made to the materialman. She has entered into a contract by which she agrees that the . surety will not be liable to her unless her claim for damages is asserted by suit within six months from the time the work is completed. She has also entered into a contract that the surety shall not be liable on account of claims of materialmen unless such claims are valid liens under the laws of the State. She must be held to the terms of her contract; there being nothing in the undertakings therein which would be contrary to public policy. The surety had a right to contract with her that its liability should be subject to reasonable conditions, and the conditions above referred to are not, in any sense, unreasonable as to the character of the claim for which the surety should be liable or the time in which the suit should be brought. See, in this connection, Massachusetts Life Asso. v. Robinson, 104 Ga. 272 (30 S. E. 918, 42 L. R. A. 361), and cit. In order to hold the surety liable, she must determine, at her peril, whether the claim of the materialman, asserted against her, constituted a valid lien under the laws of this State. If it does, she may pay the same and bring suit for indemnity within six months from the time the work is *300completed. If it does not, she may decline to pay the same and defend against such claim. There is nothing in the terms of the contract which either expressly or impliedly provides that the validity of the lien shall he first determined by a judgment of the courts. If she paid the claim, and it thereafter developed that the same was not a valid lien under the laws of the State, there is no liability under the bond. If she paid the claim, and it was a valid lien under the laws of the State, the surety would be liable, provided the other conditions of the bond are complied with, and suit to recover the amount so paid is filed within six months from the time that the work is completed. The petition set forth no cause of action, and was properly dismissed on demurrer.
Judgment affirmed.
All the Justices concur.