Added validations to json objects in Android-REST apis