Date Picker widget: Not working properly or properly on form