add required option for custom datefield