Better to sign the new contract first then submit your resignation.