Updated register checking to throw new HKEInvalidRegisterError when the user requests an invalid register