Added validation to invitations model