Added ID checking to templates.
Going to try to standardize the use of session vars for error/save.