; and (2) in section 129D ( 15 U.S.C. 1639d ), by adding at the end the following: (k) Mortgage loans held in portfolio This section and any regulations promulgated under this section do not apply to a residential mortgage loan made by the creditor so long as such loan appears on the balance sheet of such creditor. . 406. Repeal of certain mortgage-related provisions (a) Repeal Sections 1413, 1431, and 1432 of the Dodd-Frank Wall Street Reform and Consumer Protection Act are hereby repealed, and the provisions of law amended or repealed by such sections are restored or revived as if such sections had not been enacted. (b) Clerical amendment The table of contents for the Dodd-Frank Wall Street Reform and Consumer Protection Act is amended by striking the items relating to sections 1413, 1431, and 1432. 407. Amendments to the Truth in Lending Act The Truth in Lending Act ( 15 U.S.C. 1601 et seq.) is amended— (1) in section 129 ( 15 U.S.C. 1639 )— (A) in subsection (b)(3), by adding at the end the following: The Bureau may not, by regulation or otherwise, prohibit a consumer from modifying or waiving the rights provided to the consumer under this subsection. ; and (B) in subsection (u), by adding at the end the following: (4) Ensuring access to counseling services for rural communities Certification described under paragraph (1) may be provided by a person who operates an online or telephone-operated counseling service approved by the Secretary of Housing and Urban Development or by an online or telephone-operated counseling service operated by the Department of Housing and Urban Development. (5) Effective date Notwithstanding section 1400(c) of the Mortgage Reform and Anti-Predatory Lending Act, this subsection shall take effect after the end of the 1-year period beginning on the earlier of— (A) the date on which the first online or telephone-operated counseling service is approved under paragraph (4)