added options to validate method