modify loggin&logout