Now checks if an admin account is selected before allowing user to edit or delete.