Further tweaks to the JavaScript that renderings saved and error messages
Fixed a bug where category was being saved even after failing validation