Simple credit card validator in ruby