Add functions for validation attributes and element visibility