logging out before each login