Added $autoClose and required attribute groups.
Test/showcase page accepts user input to clean it.