added log to show error in submission to server