Add onInvalidity property declaration