Poor user experience with 'Invite-only' 'Login required'

I think that you might look into this:

Then install and enable this plugin, for avoid unnecessary friction (just keep in mind that bots can get into your community easily):