fix error of login