In that case you can still renew online but the new document will display your previous name. You can not change your name during the online transaction. See how to change your name or other information on a registration or title on our website.
What will be the process if I had some failure of insurance coverage on my vehicle during my active duty?
DMV has a procedure in place to exempt you from administrative actions upon your return. You will have to provide a notarized statement that the vehicle was not used during the time in question, a copy of your military ID, proof of current insurance, and signed and dated copies of deployment and return papers, or DD-214. You can take these documents to any DMV office or mail them.
What are the required steps to be able to renew by mail?