Added the populate function to user controllers, and necessary routes