Tests of old values for fields on save error and add proper IDs. Not rly liking how I incremented the js, but don't know a better way