Validate layout