logout ajax fixed