Setting up login sessions.