validate models