Registering and logging in works