fix the problem of login