code cleanup in UserController.js for readability.