As long as you used EAD, you status changed to AOS. You can stay legally until the I485 is approved or denined.