Change invalid 'email' attribute to 'mail' attribute