bug fix. Add missing router parameter for registration