fix login error issue