Adding login and logout.