carousel and form validation