credit card validator in rails