Added css validation before output. Will only output css if validation passes