login stuff and session improvements