Added sfconstraintvalidator snippet. Fixed bug in sfconstraint snippet