Adding MPG Validation Check Before Style Insertion