added validation for Ids before calling communibase