update login and logout routes