Implementing automatic validation