fixed all the users functions and index issues with requests