model validations
json formatting added