Added patient doctor authentication for browser and REST endpoints