remember code in session before logging in