; (2) the Secretary publishes intent to disclose data in the Federal Register; (3) notwithstanding paragraphs (1) and (2), section 552a of title 5, United States Code, or any other law, the Secretary is authorized to share data with an entity identified in subsection (d), and the entity is authorized to use the data as described in this section, if the Secretary enters a data sharing agreement with the entity before sharing or receiving any information under transfers authorized by this section, which data sharing agreement shall— (A) in the determination of the Secretary, include measures adequate to safeguard the privacy and personally identifiable information of individuals; and (B) include provisions that describe how the personally identifiable information of an individual will be adequately safeguarded and protected, which requires consultation with the Secretary and the head of each Federal agency the data of which is being shared subject to the agreement.