Fixed error messages not displaying for duplicate emails, fixes #325