Fixed bug with publish button being enabled when form not valid