Fixed datepicker bug with name attribute not syncing with input