Added the json validation along with this