removed authenticate logic