logout function by LF