; and (ii) enrolls at such institution of higher education— (I) not later than 1 year after such student receives a secondary school diploma or its recognized equivalent; or (II) if such student becomes a member of the Armed Forces, not later than 3 years after such student is discharged, separated, or released from the Armed Forces. (B) Continued eligibility (i) In general If an eligible student receives a commitment from the Secretary to receive a Federal Pell Grant during the first 2 academic years that the student is in attendance at an institution of higher education as an undergraduate student and the student is not a member of a household receiving assistance under the supplemental nutrition assistance program established under the Food and Nutrition Act of 2008 ( 7 U.S.C. 2011 et seq.) at the time of the FAFSA application described in subparagraph (A)(i), then such student shall not receive a Federal Pell Grant pursuant to the commitment under this section for the academic year, unless the student, at the time of such FAFSA application, is a member of a household that is eligible for benefits under— (I) the supplemental security income program under title XVI of the Social Security Act ( 42 U.S.C. 1381 et seq.); (II) a State program funded under the temporary assistance for needy families program under part A of title IV of the Social Security Act ( 42 U.S.C. 601 et seq.); (III) the Medicaid program under title XIX of the Social Security Act ( 42 U.S.C. 1396 et seq.)