Fix bugs in user_controller and add changed route to accept a user id.