added checks to see if case is in proper domain and case type and if user has access to domain
added checks to see if case is in proper domain and case type and if user has access to domain

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq