Add loginrequired mixin to add views