added ui feedback for form validation