Fixed a problem with Invitations not being marked accepted, and emails being validated when they shoudln't be