fix issue for login with twitter