indented login and logout route