validate target in all event handlers