All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
If your first husband had not had any sexual intercourse with you neither had he stayed with you in seclusion where he could have had sex with you; then, in this case, you do not need to observe an 'Iddah (waiting period). Therefore, you may get married right after being divorced. Allah Says (what means): {O you who have believed, when you marry believing women and then divorce them before you have touched them, then there is not for you any waiting period to count concerning them.} [Quran 33:49]
If your first husband had stayed with you in in seclusion, then the ruling of having sex becomes effective even if he had not had sexual intercourse with you. This is the opinion of the Maaliki, Hanbali, and Hanafi Schools of jurisprudence. Therefore, you have to do the same things just like the woman who was divorced after having sexual relations does; i.e. she has to complete her ‘Iddah, she has the right for complete Mahr (bridal money), and she gets the maintenance till the end of her ‘Iddah. We conclude that if you had stayed in seclusion with your first husband and then got married without observing ‘Iddah, then your second marriage is invalid. Moreover, you got married without the knowledge of your guardian. Any marriage that is done without the consent of the guardian is invalid according to the majority of Muslim scholars. The Prophet said: “Marriage is invalid except with the consent of the guardian.”
Therefore, this marriage should be cancelled immediately. There is no objection to marrying him again after waiting menstrual periods and fulfilling the conditions of a valid marriage.
Allah knows best.