added valid e-mail checking code