added security to email pages