added css class conditional for validations