Moved the authentication section from the routes.js