js form validation added to add/edit. Bug: prevent default not working when price field has entry.