adds error styling to form for easy message showing