fixing input for datepicker