All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
The jurists differed in opinion regarding a woman who sets a condition in the contract of her having the right to divorce herself from her husband. The majority of the jurists are of the view that this condition is invalid as it contradicts the terms of a correct marriage contract. However, the Hanafi school is of the view that this is valid if the woman initiates it and the husband accepts it. Therefore, since the first contract is concluded fulfilling the conditions of a correct marriage according to the Hanafi school, then you are bound by this condition, and the second contract, in which the condition is not mentioned, does not affect the validity of the first contract.
Allaah Knows best.