updated student update error handling