added json-validation
added basic auth
Merge pull request #5 from kostyak76/master

added json-validation