Retrieve previous code when signing in