This function is used to validate the card
String? cardValidatorFunction(String? inputText) => inputText.validateCard();