add proper logout to patient