adds error message styling and validates "name"