added json validations