Hook up login and logout.