Add error check for invalid email in profile editor

Fixes issue #2783... I overcomplicated the CRAP out of that!