added common validator