No need for to add a new error message variable.  We can use the existing ${error_msg} line instead