added form validation for patient and provider upload