added function to get all invitations for a user