Logout: return redirect if request is not ajax