Pass req to registerCallback