Added check for invalid email address