make sure to write an error when date is partially filled in