; (5) in section 808(e) ( 42 U.S.C. 3608(e) )— (A) in paragraph (4), by inserting a semicolon at the end; and (B) in paragraph (6), by inserting sexual orientation, gender identity, after sex, ; and (6) in section 810(f) ( 42 U.S.C. 3610(f) ), by striking paragraph (4) and inserting the following: (4) Certification (A) In general Except as provided in subparagraph (B), during the period beginning on the date of enactment of the Fair and Equal Housing Act of 2019 and ending on the date that is 40 months after the date of enactment of that Act, each agency certified for the purposes of this title on the day before the date of enactment of the Fair and Equal Housing Act of 2019 shall, for the purposes of this subsection, be considered certified under this subsection with respect to those matters for which the agency was certified on that date. (B) Exceptional circumstances If the Secretary determines in an individual case that an agency has not been able to meet the certification requirements under this subsection within the 40-month period described in subparagraph (A) due to exceptional circumstances, such as the infrequency of legislative sessions in the jurisdiction of the agency, the Secretary may extend the period by not more than 180 days. . (b) Prevention of intimidation in fair housing cases Section 901 of the Civil Rights Act of 1968 ( 42 U.S.C. 3631 ) is amended by inserting sexual orientation (as such term is defined in section 802 of this Act), gender identity (as such term is defined in section 802 of this Act), after sex, each place that term appears.