fixed the result of login