; (3) by redesignating paragraph (5) as paragraph (6); and (4) by inserting after paragraph (4) the following new paragraph: (5) Requirements for assistance for youth aging out of foster care Assistance provided under this subsection for an eligible youth pursuant to paragraph (2)(B) shall be subject to the following requirements: (A) Requirements to extend assistance (i) Participation in family self-sufficiency In the case of a public housing agency that is providing such assistance under this subsection on behalf of an eligible youth and that is carrying out a family self-sufficiency program under section 23, the agency shall, subject only to the availability of such assistance, extend the provision of such assistance for up to 24 months beyond the period referred to in paragraph (2)(B), but only during such period that the youth is in compliance with the terms and conditions applicable under section 23 and the regulations implementing such section to a person participating in a family self-sufficiency program. (ii) Education, workforce development, or employment In the case of a public housing agency that is providing such assistance under this subsection on behalf of an eligible youth and that is not carrying out a family self-sufficiency program under section 23, the agency shall, subject only to the availability of such assistance, extend the provision of such assistance for two successive 12-month periods, after the period referred to in paragraph (2)(B), but only if during the entire 12-month period preceding each such extension the youth was— (I) engaged in obtaining a recognized postsecondary credential or a secondary school diploma or its recognized equivalent; (II) enrolled in an institution of higher education, as such term is defined in section 101(a) of the Higher Education Act of 1965 ( 20 U.S.C. 1001(a) ) and including the institutions described in subparagraphs (A) and (B) of section 102(a)(1) of such Act ( 20 U.S.C. 1002(a)(1) )