improve the login. prepare for drag refresh.