Retrieve the stored path from the session storage.
This is used to redirect the user to the correct page after login.
Retrieve the stored path from the session storage.