solved problem with Date type input