Changed php logout function