Added validation for the days and dates