can curl post to register a new user