Clearing datefield, date validation bug fixed