Add datepicker functionality to form