fixed json response to correspond with the actual check