Add Login/out and cleanups.