creates similar login_required for non-public views