cleaned up index.js for community api
test cases for community validator