setting validate