fixed login failed issue