recover from where you left off without entering code again after app shutdown and restart