Adds api for registering users