wasnt using correct message var

change $err_msg to $msg for proper output, could do $msg = $err_msg;
instead, but why...