Added csrf middleware to settings