modified add and edit pages to use ng-sumit and required fields so invalid info isn't sent in ajax POST