moved validation methods to elements and removed the obsolete validation class