Move login and logout to graph