add flash attribute to responsible validation