Added formatting checks for name and phone number in doctor form