fix login failed bug