added login and EJS templating