added console.log(data) so echo is reflected on the console