Fix variable scope of 'email'