Tickets and passes are only considered valid once they have been validated.
CP Card and Siga Card
These must be validated no more than 15 minutes before the train's scheduled departure time. Do not validate the card again if you change trains.
Andante cards
You must validate this card when you start a journey, when you change line or transport and regardless of your card. You can validate it no more than 10 minutes before starting your journey.