delete log
update some login logic