add the login & logout demo code