...
Use the same message next to the field and in the error summary so they:
look, sound and mean the same
make sense out of context
reduce the cognitive effort needed to understand what has happened
...
When the new page or view is first loaded, ensure that focus is moved to the alert so that screen readers will announce the alert right away.
...