corrected "login" to "join" and "logout" to "leave"
typo