Use wrq:get_req_header() to extract user id