registers titled middleware