Adding publish date validation and fixing the saving