Validate declarations