private void validateHelper(){
	int checkLength = TextFieldInput.length();
	int validLength = getValidLength();
	try{
	    if (CCValidator.isValid(TextFieldInput)){
		//set card type variable, print to label
		cardTypeLabel.setText("Card Type: " + CCValidator.getCardType(TextFieldInput));
		cardValidLabel.setText("Valid " + CCValidator.getCardType(TextFieldInput)+ " card number!");
	    }
	    else if(validLength == -1){
                cardValidLabel.setText("Please select a card type!");
                return;
            }
	    else if(checkLength > validLength){
		String overByNum = "Too many digits delete ";
		overByNum += Integer.toString(checkLength-validLength);

		cardValidLabel.setText(overByNum);
		return;
	    }
	    else if(checkLength < validLength){
		cardValidLabel.setText("Not enough digits!");
		return;
	    }
	    else if(isInputInvalid()){
		cardValidLabel.setText("Invalid character input!");
		return;
		}
	    else{
		cardValidLabel.setText("This is an invalid card number!");
	    }

	}catch(ArrayIndexOutOfBoundsException ex){
	    if(checkLength < validLength){
		cardValidLabel.setText("Not enough digits");
		return;
	    }
	}
	catch(NumberFormatException ex){
                cardValidLabel.setText("Invalid character input!");
                return;
	}


	TextFieldInput = "";
	cardNumberField.setText("");
       
    }