Add logout link in base template
Add flash messages