diff --git a/src/modify.html b/src/modify.html
index 59fc8dd..2f0f26a 100644
--- a/src/modify.html
+++ b/src/modify.html
@@ -47,7 +47,12 @@
body: JSON.stringify(object)
}).then(res => {
if (res.status === 200) {
- document.getElementById('formStatus').innerHTML = "Success";
+ let temp = res.json();
+ if(temp.result === 'error'){
+ document.getElementById('formStatus').innerHTML = `${temp.error}`;
+ } else {
+ document.getElementById('formStatus').innerHTML = "Success";
+ }
} else if (res.status === 500) {
document.getElementById('formStatus').innerHTML = "Failure";
} else {