added the validate email address method