Better element validation, no more errors