fixed active hook on form validation errors