Moved validate function to AbstractElement, removed it from most elements