fix login failed issue