improve the speed of login