Fix indentation
Remove connect-flash middliware
Add authentication check to routes