Add login/logout for user