fixed order of middleware for parsing params. using lookup ref to find email addr.