class deletion, user input checks