link error message to anchor id on input field