add basic login in and out function