In al-Qayyarah, Iraqis are thronging a civil court to get married a second time, register births and replace the documents they were delivered during two years of jihadist administration.
"Do you take Ahmad as your lawful husband?", the judge asked Salma in the civil court that recently reopened in al-Qayyarah, a town on the Tigris river south of the city of Mosul.
The young lady said yes, a year after exchanging vows before a Muslim cleric in Mosul, the large northern city where Iraqi forces are battling the "Islamic State of Iraq and the Levant" (ISIL).
The wedding certificate the couple was given then, complete with ISIL letterhead and stamps, is worthless in the eyes of Iraq's federal administration.
The jihadist organisation, which controlled regions in Syria, swept through large parts of Iraq in 2014 and proclaimed a caliphate straddling both countries.
In an unprecedented move in modern jihad, the "caliphate" declared in Mosul was an experiment in statehood that saw an army of clerks and registrars run a parallel administration churning out millions of "official documents".
Iraqi forces launched an operation to retake Mosul on October 17th and, as soon as they were able to flee, Ahmad and Salma came to the court in al-Qayyarah to officialise their union.
"We got married a year ago but I have documents delivered by ISIL and they are not recognised," Ahmad told AFP after the ceremony.
"We wanted to come to this court to get this certificate before going to Baghdad," he explained.
His young wife stood smiling quietly next to him, a black hijab framing her heavily made-up face.
They both refused to give their full names and asked not to be photographed, out of concern for the safety of relatives who remain in ISIL-held neighbourhoods of Mosul.
In front of the al-Qayyarah tribunal, which re-opened in mid-November after Iraqi forces retook the town from ISIL this summer, dozens of people were queuing up.
Some wanted to repeat their wedding vows, others to register the birth of their children.
Abdel Aziz Ibrahim, a 25-year-old from al-Qayyarah, was among them and explained he wanted to officialise his caliphate-era marriage with the now reinstated federal authorities.
"I came to have my marriage registered," the young man said, adding that he also hoped to "obtain a birth certificate for my son Hamza, who was born under ISIL control".
Meanwhile, at more than two years of age, little Ahmad's legal existence was about to begin.
He entered with his family, who were accompanied by two witnesses to sign the boy's birth certificate.
"Ahmed was born in August 2014, two months after ISIL entered our town," his mother Hamda Mahmud said, holding her son who wore a thick jacket and woolly hat.
"We did not even try to get a birth certificate at the time because we knew that ISIL courts would never be recognised. So we waited," she said. "ISIL hurt us so much."
Inside the busy courtroom, the judge tried to reassert his authority after two and a half years of jihadist rule marked by the law of terror and the strictest interpretation of sharia.
"We have law degrees in here," he said.
Tareq al-Juburi, one of the lawyers working in al-Qayyarah, told AFP outside the court: "Marriage, birth and death records just froze in courts located in areas under ISIL's control."
"Now that some of these areas are being liberated, the people are taking steps" to obtain official documents, he explained.
Not all the people lining up in the frosty morning outside the al-Qayyarah court were seeking to replace ISIL-issued documents.
Serhan Matar, 56, said he had come to obtain a death certificate for his son, "a policeman killed by ISIL when the jihadists entered al-Qayyarah".
He said he also wanted to ask for compensation money for his daughter-in-law and his son's children, as well as "file a complaint against ISIL".