changed received_invitations method to user association