add configurable timeout while validating