solve some Login problem