If her husband was illegal she cannot derive any benefit or status from him because he does not have any status to confer on her.
If indeed he had legal status to confer on her, she cannot file for benefit after the divorce and he is needed to sign the documents and the marriage must be subsisting, unless there was abuse involved. In that case she can file even after divorce.
What court is he attending?
You are welcome to use the link provided below.