added "replace" to possible insert locations for form error messages, refs #228