Add login and logout mechanisms