Added dataname to response

Data name was added to the response when there is an error so that it can be displayed in the message to the user.