Simplify form state handling using data tags.