add json response
add validation error