add code to default date to today if not entered