Fixed more undefined object errors in users.js in routes