Importing for others with an invalid author email address still allows work to be imported
Steps to reproduce:
Log in as an archivist
Post > Import Work
Fill in a URL, but it can't be from a site where we can automatically detect email addresses or names (slashdom.net or a journal site like LiveJournal) – it might be easiest to use something totally off the wall, like a JIRA issue
Check "Import for others ONLY with permission"
Fill in "Author Name"
Fill in "Author Email Address" with something not email-address-shaped, e.g. a single letter, a word, or a sentence
The work is imported. The byline lists just the current user, e.g. "CURRENT_USER" rather than "AUTHOR_NAME [archived by CURRENT_USER]". The work is added to the current user's account.
What should happen:
We should validate the format of the Author Email Address, and I should be redirected to the import form with a red flash error saying roughly, "Author Email Address does not appear to be a valid email address." (If you find an existing error message somewhere in the code, please use that.) The work should not be imported.