(3) Loan agreement In a loan agreement with an eligible landlord under this subsection, an implementing organization shall include provisions establishing that the eligible landlord shall, for each eligible rental property for which a loan is used to fund repairs under this subsection—
(A) comply with Federal accessibility requirements and standards under applicable Federal fair housing and civil rights laws and regulations, including section 504 of the Rehabilitation Act of 1973 (29 U.S.C. 794); and
(i) if the landlord is renting the assisted units available in the eligible rental property to tenants receiving tenant-based rental assistance under section 8(o) of the United States Housing Act of 1937 (42 U.S.C. 1437f(o)), under another tenant-based rental assistance program administered by the Secretary or the Secretary of Agriculture, or under a tenant-based rental subsidy provided by a State or local government, comply with the program requirements under the relevant tenant-based rental assistance program; or
(ii) if the eligible landlord is not renting to tenants receiving rental-based assistance as described in clause (i)—
(aa) offer to extend the lease of current tenants on current terms, other than the terms described in subclause (iv) for not less than 3 years beginning after the completion of the repairs, unless the lease is terminated due to failure to pay rent, performance of an illegal act within the rental unit, or a violation of an obligation of tenancy that the tenants failed to correct after notice; and
(bb) if the tenant of an assisted unit moves out of the assisted unit at any point in the 3-year period following the loan agreement, maintain the unit as an affordable unit for the remainder of the 3-year period;
(I)
(II) provide documentation verifying that the property, upon completion of approved renovations, has met all applicable State and local housing and building codes;
(III) attest that the landlord has no known serious violations of renter protections that have resulted in fines, penalties, or judgments during the preceding 10 years; and
(IV) cap annual rent increases for each assisted unit at 5 percent of base rent or at the rate of inflation, whichever is lower, for not less than 3 years beginning after the completion of the repairs.
(B)