Added checking for valid date when add