Adding login and logout actions