added login and logout for authd user