updated functionality to include deleting users