You still have to maintain your status after you submitted I-130. Filing 130 doesn't confer you any status whatsoever. You have to maintain a legal non-immigrant status until you can file 485, which is at least 4 years away if you are filing as the spouse of a green card holder.