Return 500 error when try/catch fails in ensureAuthenticated.
Add user onto req.user for easier access.