adding validation for property