I used to work like that, under my husband's sponsorship, but we didn't fill up any paper or anything, so basically that was illegal, still nobody cared. In my new company I'm still under my husband's sponsorship, but they are arranging legal papers for me, because they are more strict in this matter now as I heard. Still, you can arrange for yourself as well, and of course you need your husband's permission.