improved validation but still does not cancel page publish