Form element class implementation