added options for when to validate