validator now checks email regex.