Change query param to path param
Remove isLoggedIn method