Add login logout functionality