Improves api validation