Cleaned up routes, factored out login and logout