Tested and made fixes to the users API endpoint