Revised login_required so if user not found then redirect to index.