Modify api_controller and user model