implement login/logout
fix