adding callbacks when card is valid and when is not valid