updated the delete function
final changes to the user manager