PHP email validation + checking for duplicates against an ExpressionEngine members table