before complete login, logout