Adding custom validation for start and end date