logout function #24
fix login-out spec #24