update ajax response file to return error messages

errors!!!