fix NPE
Correctly integrate http request based user sessions to so logging in at the Basic: auth dialog logs you in and sets up a "recent" request to avoid multiple username inputs