model must check if its input data is valid