update start and end date validity