validate case index domains

http://manage.dimagi.com/default.asp?120127

@dannyroberts 
test case on its way