Added cookies to keep user sessions.