think I fixed login/logout bugs.