Fixed typo: `valid` to `invalid`