Error handling to admin edit items