login_required decorator added to spa view