add 'class' and 'placeholder' attribute to formInput method