added login & logout