Fixes few warnings for DatePickerField.
Refactoring of CreditCardRegistrationControl.