Added check to ensure email field does not get a double extension.

This problem is often found when using IMAP for authentication or user creation.