added authentication and doctor model