Added extra middlewear so that people snopping get a nice surprise instead of a 404 page