test code check email valid