fixed the die command to only work for an admin