form: move the error message to a proper location

refs #14565