Add basic login&out support.