adds validation styling