; and (B) the eligible purchaser has made the certifications and entered into the agreements required under subsection (d) with respect to the project. (d) Affordable housing restrictions The certifications and agreements required under this subsection with respect to a multifamily housing project are such certifications to, and binding agreements with, the Secretary as the Secretary considers necessary to ensure that during the useful life of the project the project will comply with the following requirements: (1) Affordable housing The project shall comply with the requirements under section 215(a) of the Cranston-Gonzalez National Affordable Housing Act ( 42 U.S.C. 12745(a) ) necessary to qualify under such section as affordable housing. (2) Just-cause evictions A tenant of the project may be evicted only for just cause and only pursuant to advance written notice to the tenant of such just cause. (3) Source of income discrimination A prospective tenant household of the project may not be refused rental of a dwelling unit in the project, and a prospective tenant household or tenant household may not be discriminated against in the renting of a dwelling unit in the project, based on the source of income of such household, including income under the program under section 8(o) of the United States Housing Act of 1937 ( 42 U.S.C. 1437f(o) ) or any similar tenant-based rental assistance program. (4) Admissions restrictions Tenancy of dwelling units in the project may not be restricted on the basis of sexual identity or orientation, gender identity or expression, conviction or arrest record, credit history, or immigration status. (5) Supportive services Residents of the project shall be provided with free, voluntary supportive services that help address the needs of those experiencing chronic homelessness or housing instability, including access to healthcare, employment or education assistance, childcare, financial literacy education, and other community-based support services, as the Secretary shall require. (6)