ZC API: Add checks for ensuring that regMode and deregMode are valid