element validation implemented