added flash message to validators