added message middleware to the settings.py templates