Login and session handling update