save histroy
write some codes about login