should background validation disappear when i click on any pop-up?

In my web application, there is a search box.When I insert wrong data in search box and TAB out from that search box.
Then I try to open a popup. Background validation is remained same as it is.

So Is there any UX rules for background validation?

enter image description here