Restore stored session after database/user dialog
We restore the stored session if the database is defined in the hashtag. But if the user fill the database/user dialog, he has to login even if a stored session exists.
I think it will be better to try to reuse this session and avoid unnecessary login process if the session is still valid.