Added checking if schedule date is valid or not