Fixed the email settings save method