add styles to form element