A.13 WCAG 2.1 Success Criterion 2.2.5 − Re-authenticating
If a user is logged into a system, and his/her "session expires", he/she must be able to log in again without losing any of his/her previously entered data.
Before Rectification
The example above shows a scenario where a user will lose his/her data, as the system has not remembered the user’s details at step 4.
After Rectification
The correct technique is to ensure after the user logs in again, the data entered is not lost.
WCAG 2.1 Reference:
https://www.w3.org/WAI/WCAG21/Understanding/re-authenticating