changed splitEmailAddress function as it wasn't correct splitting the email...
changed splitEmailAddress function as it wasn't correct splitting the email address if it contained more than one @ in the address
changed splitEmailAddress function as it wasn't correct splitting the email address if it contained more than one @ in the address