some common rules used for validating data