Added a getCollections function to user, which gets that users collections as a nested array.