fixed an issue with illegal characters allowed after valid card is input