Password element class implementation