flash message appears on the index page