Implement data validation at model layer