Model validation is added.