modify email validation regexp to match rfc1035

Previously, domain parts which began with a dash or a number, or ended with a dash, would be accepted as valid.