update login and config
add ejs locals