added null valid date handling in offer