added class attribute to an input element