How can you use the word invalid in a sentence?

Example sentence - The ticket was invalid because the expiration date had passed.