modify loggin system