Updated PasswordHelper to allow passing of class name