Pull out UsersController#check_account_creation_invite helper.