node validation using json objects intead of coding