Adding flash notices and error messages