UPDATE to pass req object to getUserId

Closing #16