Made flood protect validation rule generic