How to refer to a custom field in a node template?
The issue occurred because 

{{ content.field_login_required }} 


was used. Node should be used in place of content. The proper code is

{{ node.field_login_required.value }}