small changes for login & logout