Added Flash message in the index action