Handle client registration/login/logout