working login & logout done