stop event propagation if validation failed