Hooked up the login and logout control.