Updated delete logic and email auth