added class based login_required decorator