wip: add checks for valid date range