fix some error of login