Implemented structure validation