validate ajax requests on loading widgets