Login and logout working after some dubious copy&pasting
Added sessions state to layout and show_entries templates
added flash messages