Working login and logout.