add class validates