Loans and credit cards

Hi, my husband took a loan without my knowledge then later lost his job and couldn't pay.We had to leave Bahrain but now every time I get a job my visa is denied at the immigration . What can I do to get a visa without my husband's issue interfering with my going back to Bahrain? Thank you.
Note I was under my husband's visa so I think I am being denied visa because of his unpaid loans and credit cards??

That could be the case.  But if it is the case, there is no way to move ahead without settling the loan.