Moving register into the api app as that seems sensible