adding logout to doctor pages