work on routes and logout