Added user authentication and session management