Adding basic login/out functionality