Added error check for null id
Added beginnings of Invitations