Implementing login functionality, sessions.