Separated date validation functionality into a service