Add login/logout functionality