Added form validation to the Pub Format submit