custom UI for form validation