changed CreditCardRepository to throw an exception when not found entity