flash messages refactoring, forbid gmail.com etc