Used eager loading to obtain the user with the posts in the Postcontroller index method