register/login/logout demo