delete function checkuser part 2