الجواب وبالله التوفيق
As per the situation described in your question, the places where Shar‘ai courts are not present, jamatul-muslīmīn is considered as its replacement however in that jamah the following conditions have to be present:
1- The minimum number of members in that jamah should be 3, if there are less than 3 people and they make a decision it will not be considered valid as per the teachings of the Islamic Shari‘ah.
2- All members of this jamah should be adil i.e. a person who refrains from all gunah-e-kabīrah,doesnot repeat the gunah-e-sagīrahand in case of committing any sins immediately repents. Therefore a person, who accepts bribes, involves in interest based transactions, shaves beard, lies and does not pray should not be part of this jamah.
3- It is mandatory that ulamah are involved in the decision making process, the collective decision of just general public members does not equate with the decision of a qadhi.
4- The decision shall be unanimous but not based on majority. A decision which is made only based on the majority of members is not considered valid.
(Fatawah Darululoom ZakriyahPage 285, Vol 4)
Based on the nonfulfillment of the conditions mentioned above, the Fasqh performed by the imam of your mosque is not considered valid and you are still in your husband’s Nikah.
واللہ اعلم بالصواب