Adding basic login/logout functionality