added authentication features for turnip