Nikaah after divorce

Q: I am divorced and have two children. I had a court marriage in Pakistan but the nikah is not registered online. My husband told me not to tell the imam I am divorced because I didn’t have divorce papers and they needed proof. So I didn’t tell the imam I’m divorced and he wrote that I am a virgin on the papers. Is the nikah valid? I am from UK and my husband is in Pakistan.