Adding login and logout