Code with loadEmail