Add login/out func. Currently, not work.