Exposes validation for publish via ajax and adjusts responses and return values