Add login/logout functionality.