finally finished validateEmailAddress function and it works.