Improved general error checks for edit/create