validation and deletes