created user login & logout