Modify flash notices
small refactoring
Add validation notice