adding the valid email method