The following snippet will let you remove the login shake effect when error occurs.

Snippet Source/Credit: WordPress Support Forum