Added validation when getting token from Twitter