Added success and error messages to all pages.