Added validation for date null