Update routes/user.js

Fix 500 err is not defined.