Fixed issue where currentUser is set on res instead of req

Fixed issue where currentUser is set on res instead of req.

Not 100% sure about the req.userLoggedIn but I suppose it is for use on the request end.