Draft for logout and register.