how can we get the error message from the model validation?