I'm trying to create a form that will give an error if an appointment is made for a person on the same date and same time as another appointment. I have three factors involved: it checks to see which provider is being assigned the appointment, checks other dates within the field for this provider, and checks the times. I'm close to figuring it out but I keep catching other errors with my solutions.