Michael Rushton's EmailAddressValidator class ported to composer