added edit, update, and index actions to the user controller.