add @mod.route('/logout/')
update login logic
update layout.html