Adds validation and error styling