use express-api-response module

https://github.com/B1naryStudio/express-api-response
isLoggedIn move to middleware