Added email validation method.