Added login and session management