Added validation for element builder