logout function finish - mobile