created doctor access logging