Alloy - FormValidator

Example 1 - Rules extracted from CSS classes

Example 2 - Rules passed on the constructor