Added login and logout.