Fixed api endpoint bug and added users collection