add user login & logout